PlcScanSetReadDelay

 

void @PlcScanSetReadDelay(int port, int station, char *type, int address, int delay_count);

 

Åë½ÅÇÁ·Î±×·¥¿¡¼­ ¿ì¸®´Â READ¶ó´Â Åë½Å Àб⠽ºÄÉÁìÀ» ÀÛ¼ºÇÏ¿© »ç¿ëÇϴµ¥ ±âº»°ªÀ¸·Î´Â ¸ðµç ÀбⰡ ¼ø¼­ÀûÀ¸·Î ÇàÇØÁø´Ù. PlcScanSetReadDelay´Â °¢ READÀÇ Àбâ Ƚ¼ö¸¦ ÁöÁ¤ÇÏ´Â ÇÔ¼öÀÌ´Ù.

 

ÇÔ¼öÀÎÀÚ

port               Æ÷Æ®¹øÈ£ (–1À» »ç¿ëÇÏ¸é ¸ðµç Æ÷Æ®°¡ ÇØ´çµÈ´Ù.)

station           ½ºÅ×ÀÌ¼Ç ¹øÈ£ (-1À» »ç¿ëÇÏ¸é ¸ðµç ½ºÅ×À̼ÇÀÌ ÇØ´çµÈ´Ù.)

type              M, P ¿Í °°Àº ¸Þ¸ð¸® Á¾·ù ( ¡°¡±À» »ç¿ëÇÏ¸é ¸ðµç ¸Þ¸ð¸® ÇüÅ°¡ ÇØ´çµÈ´Ù.)

address        PLCÀÇ Àб⠽ÃÀÛ ÁÖ¼Ò (-1À» »ç¿ëÇÏ¸é ¸ðµç address°¡ ÇØ´çµÈ´Ù.)

delay_count   ½¬´Â Ƚ¼ö (0À» »ç¿ëÇÏ¸é °è¼Ó Åë½ÅÇÑ´Ù´Â ÀǹÌÀÌ°í 1À» »ç¿ëÇϸé Çѹø ½¬°í Çѹø Åë½ÅÇÑ´Ù´Â ÀǹÌÀÌ´Ù.)

 

return °ª

return °ªÀº ¾ø´Ù.

 

¿¹Á¦1

@PlcScanSetReadDelay(0, -1,"", -1, 5);

@PlcScanSetReadDelay(0, 1,"", -1, 0);

¹®Àå¼³¸í : 0¹ø Æ÷Æ®ÀÇ ¸ðµç Àб⠽ºÄÉÁìÀ» 5¹ø½¬°í 1¹ø Åë½ÅÇϵµ·Ï ¼³Á¤ÇÑ ÈÄ 0¹ø Æ÷Æ®ÀÇ 1¹ø ½ºÅ×À̼ÇÀÇ ½ºÄÉÁìÀº °è¼Ó Åë½ÅÇϵµ·Ï ¼³Á¤Çß´Ù. Áï À§ÀÇ µÎ ÇÔ¼ö´Â 1¹ø½ºÅ×À̼ÇÀº °è¼ÓÅë½Å, ³ª¸ÓÁö ½ºÅ×À̼ÇÀº 5¹ø½¬°í 1¹ø Åë½ÅÇϵµ·Ï ¼³Á¤µÇ¾ú´Ù.

 

°ü·ÃÇ׸ñ

@PlcScanSetReadDelay()

@PlcScanWriteBit()

@PlcScanWriteBlock()

@PlcScanWriteWord()